//
//  AccountInfoData.m
//  HPZZTong
//
//  Created by Handpay on 14-3-27.
//  Copyright (c) 2014年 Handpay. All rights reserved.
//

#import "AccountInfoData.h"
#import "ZZTongDefine.h"

@implementation AccountInfoData

-(void)dealloc{
    self.account = nil;
    self.mobile = nil;
    self.name = nil;
    self.bankName = nil; 
    self.cardNo = nil;
    self.branchBankName = nil;
    self.shopName = nil;
    self.statusDescpriction = nil;
    self.certNo = nil;
    self.bankId = nil;
    self.branchBankId = nil;
    self.provinceId = nil;
    self.provinceName = nil;
    self.areaId = nil;
    self.areaName = nil;
    
    self.cardTranferLimitInfo = nil;
    self.selfTranferLimitInfo = nil;
    self.quickTranferLimitInfo = nil;
    
    self.frontCCPicUrl = nil;
    self.backCCPicUrl = nil;
    self.holdPicUrl = nil;
    self.licensePicUrl = nil;
    self.companyPicUrl = nil;
    self.wdPermission = nil;
    [super dealloc];
}

- (void)setAccountStatus:(AccountStatus)accountStatus{
    if (_accountStatus == accountStatus) {
        return;
    }
    
    _accountStatus = accountStatus;
    [NOTIFICATION postNotificationName:AccountStatusChangeNotificationKey object:@(_accountStatus)];
}


- (void)setstatusByStr:(NSString*)status{
    if ([status isEqualToString:@"00"]) {
        self.accountStatus = AccountStatusSuccess;
    }else if ([status isEqualToString:@"01"]) {
        self.accountStatus = AccountStatusNotSubmit;
    }else if ([status isEqualToString:@"02"]) {
        self.accountStatus = AccountStatusReview;
    }else if ([status isEqualToString:@"03"]) {
        self.accountStatus = AccountStatusFailed;
    }
}
@end
